﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Company.Database.Base.Entities
{
    /// <summary>
    /// 工作站实体
    /// </summary>
    [Table(nameof(StationEntity))]
    public class StationEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]//自增
        public int Id { get; set; }
        /// <summary>
        /// 工作站点名称
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 所属医院ID
        /// </summary>
        public int HospitalId { get; set; }
        /// <summary>
        /// 物理位置
        /// </summary>
        public string? Position { get; set; }
        /// <summary>
        /// MAC
        /// </summary>
        public string? MacAddress { get; set; }
        /// <summary>
        /// IP
        /// </summary>
        public string? IPAddress { get; set; }
        /// <summary>
        /// 是否启用，0=启用，1=停用
        /// </summary>
        public int Status { get; set; }
    }
}
